import { createStore } from 'vuex'


interface ListItemState {
  age: number
  name: string
  sex: '男' | '女'
}

export interface RootState  {
  list: ListItemState[],
}

export default createStore<RootState>({
  state: {
    list: [{
      age: 18,
      name: '张三',
      sex: '男'
    },{
      age: 20,
      name: '李四',
      sex: '男'
    },{
      age: 22,
      name: '婷婷',
      sex: '女'
    }]
  },
  mutations: {
  },
  actions: {
  },
  modules: {
  }
})
